public class demol1 {
    public static void main(String[] args){
        Rect rect = new Rect();
        Cycle cycle = new Cycle();
        Flower flower = new Flower();
        Triangle triangle = new Triangle();
        Shape[] shapes = {rect,cycle,flower,triangle};
        for(Shape shape : shapes){
            shape.draw();
        }
    }
}
